<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>admin page</title>
	<link rel="stylesheet" href="css/bootstrap.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body>
	<div class="navbar navbar-fixed-top navbar-inverse">
		<div class="navbar-inner">
		<a class="brand" href="#">project</a>
		<ul class="nav">
		<li><a href="login-success.jsp">服务</a></li>
		<li class="active"><a href="tolist.jspx?father=0" >文件下载列表</a></li>
		<li>&nbsp;&nbsp;&nbsp;&nbsp;</li>
		<li>
			<form action="findmd.jspx"  id="form" method="post" class="navbar-search">
				<input type="text" name="fiel.md"  class="input-medium search-query" placeholder="MD5码......" required="required" onwaiting="5"/>
				<input type="submit" value="搜索" class="btn" />
			</form>
		</li>
		<li><a href="exit.jspx" class="">退出</a></li>
		</ul>
		</div>
	</div>
	<div style="margin-top:100px;">
	<h1>文件列表</h1>
<table class="table" >
	<tr>
		<th>编号</th>
		<th>上传时间</th>
		<th>下载</th>
		<th>MD5</th>
		<th>大小(byte)</th>
	</tr>
		<c:forEach var="f" items="${list }" varStatus="status">
	<tr>
		<td>${status.count }</td>
		<td>${f.time }</td>
		<td>
			<c:if test="${f.son ==-1}"><a href="tolistson.jspx?fileId=${f.id }&son=${f.son}">${f.name }<img src="img/folder.gif"/></a></c:if>
			<c:if test="${f.son ==-2}"><a href="download.jspx?fileId=${f.id }">${f.name }</a></c:if>
		</td>
		<td>${f.md }</td>
		<td><a href="#"  rel="tooltip" data-original-title="大小(B)" class="t" data-content="${f.length/1024/1024 }">${f.length }</a></td>
			
	</tr>
	</c:forEach>
</table>
	</div>
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;&lt;<a data-original-title="<p style='font-size:20px;color:#f89406;font-weight:bold;'>提示</p>" href="#" class="tt btn btn-success btn-large" rel="popover" data-content="<p style='color:#9d261d'>记得本站，可以凭借MD5查找文件哦！</p>">放上鼠标查看</a>&gt;&gt;
	<script type="text/javascript">
	   $('.t').tooltip({'trigger':'hover','placement':'top'});
	   $('.tt').popover({'trigger':'hover','placement':'top'});
	</script>
</body>
</html>